//自定义验证的错误对象
class ValidationError extends Error {
    constructor(x) {
        super();
        this.name = 'ValidationError';
        this.message = x;
    }
};

//导出自定义的类
module.exports = ValidationError;